import Vue from 'vue'
import App from './App.vue'

Vue.config.productionTip = false

// 导入路由
import router from '@/router'
import store from '@/store'

import TypeNav from '@/components/TypeNav'
// 注册全局组件
Vue.component('TypeNav',TypeNav)

import Pagination from '@/components/Pagination'
Vue.component('Pagination',Pagination)

// 使用mock
import '@/mock'
new Vue({
  render: h => h(App),
  router,
  store,
  beforeCreate(){
    Vue.prototype.$bus = this
  }
}).$mount('#app')
